import { CmdConfType } from '../types'
import { CmdConfTypeConst } from '../consts'
import { genCmdConfDefaultIcon } from './gen-cmd-conf-default-icon'

/**
 * 生成一个各配置项为空的命令配置对象
 *
 * @returns {CmdConfType} 命令配置对象
 */
export const genCmdConf = (): CmdConfType => {
  return {
    type: CmdConfTypeConst.CMD,
    parent: '',
    name: '',
    cmd: '',
    priority: 0,
    icon: genCmdConfDefaultIcon(),
    color: '#409EFF',
    remark: ''
  }
}
